package com.woniuxy.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.woniuxy.entity.PurchasePricing;
import com.woniuxy.service.PurchasePricingService;

@Controller
@RequestMapping("/purchase_pricing")
public class PurchasePricingController {
	
	@Autowired
	private PurchasePricingService purchasePricingService;
	
	//查询所有产品
	@ResponseBody
	@RequestMapping("/all")
	public List<PurchasePricing> purchasePricing(){
		return purchasePricingService.findPurchasePricing();
	}
}
